package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.config.common.R;
import com.itheima.reggie.entity.Category;

import java.util.List;


/**
 * @Name CategoryService
 * @Author BaiXin
 * @Date 2022-10-31 10:15
 */
public interface CategoryService extends IService<Category> {
   R deleteById(Long id);


   /**
    * 根据类型查询菜品或者套餐
    * @param type
    * @return
    */
   List<Category> findByType(Integer type);
}
